package lab02.test12;

public class Test12 {
    public static void main(String[] args) {
        //矩形的周长、面积
        Rctangular rctangular = new Rctangular();
        rctangular.height = 20;
        rctangular.width = 30;
        System.out.println("矩形面积为：" + rctangular.area());
        System.out.println("矩形的周长为：" + rctangular.perimeter());

        //圆的面积与周长
        Circle circle = new Circle();
        circle.raduis = 2;
        System.out.println("圆的面积为：" + circle.area());
        System.out.println("圆的周长为：" + circle.perimeter());

    }
}
